home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / c-runtime / tests / ConfuseMore.m < prev    next >
Encoding:
Text File  |  1992-08-18  |  1.6 KB  |  103 lines

  1. /* -*-objc-*- */
  2.  
  3. /* 
  4.   $Header$
  5.   $Author: dglattin $
  6.   $Date$
  7.   $Log$
  8.  */
  9.  
  10. #include  <ConfuseMore.h>
  11. #include  <stdio.h>
  12. #include  <objc.h>
  13. #include  <objc-proto.h>
  14.  
  15.  
  16. @implementation SubClass1 (Fifth_Test)
  17.  
  18. - additionalMethod1 /* Intentional conflict. */ {
  19.  
  20.   printf( "a message from %s, %s, Fifth_Test category.\n",
  21.     [ self name ], sel_getName (_cmd));
  22.   return self;
  23. }
  24.  
  25. - additionalMethod_2 {
  26.  
  27.   printf( "a message from %s, %s, Fifth_Test category.\n",
  28.     [ self name ], sel_getName (_cmd));
  29.   return self;
  30. }
  31.  
  32.  
  33. @end
  34.  
  35.  
  36. @implementation SubClass2 (Third_Test)
  37.  
  38. - additionalMethod_1 {
  39.  
  40.   printf( "a message from %s, %s, Third_Test category.\n",
  41.     [ self name ], sel_getName (_cmd));
  42.   return self;
  43. }
  44.  
  45. - additionalMethod_2 {
  46.  
  47.   printf( "a message from %s, %s, Third_Test category.\n",
  48.     [ self name ], sel_getName (_cmd));
  49.   return self;
  50. }
  51.  
  52. - additionalMethod_3 {
  53.  
  54.   printf( "a message from %s, %s, Third_Test category.\n",
  55.     [ self name ], sel_getName (_cmd));
  56.   return self;
  57. }
  58.  
  59.  
  60. @end
  61.  
  62.  
  63. @implementation SubClass3 (Second_Test)
  64.  
  65. + additionalClassMethodTwo {
  66.  
  67.   printf( "a message from %s, %s, Second_Test category.\n",
  68.     class_getClassName( self ), sel_getName (_cmd));
  69.   return self;
  70. }
  71.  
  72. - additionalMethod_1a {
  73.  
  74.   printf( "a message from %s, %s, Second_Test category.\n",
  75.     [ self name ], sel_getName (_cmd));
  76.   return self;
  77. }
  78.  
  79. - additionalMethod_2a {
  80.  
  81.   printf( "a message from %s, %s, Second_Test category.\n",
  82.     [ self name ], sel_getName (_cmd));
  83.   return self;
  84. }
  85.  
  86.  
  87. @end
  88.  
  89.  
  90. @implementation SubClass1 (Sixth_Test)
  91.  
  92. - additionalMethod_3 {
  93.  
  94.   printf( "a message from %s, %s, Sixth_Test category.\n",
  95.     [ self name ], sel_getName (_cmd));
  96.   return self;
  97. }
  98.  
  99.  
  100. @end
  101.  
  102.  
  103.